﻿<?xml version="1.0" encoding="utf-8" ?>
<!--Created with Liquid XML Studio (http://www.liquid-technologies.com)-->
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="configuration" type="versions" />
  <xs:complexType name="versions">
    <xs:sequence minOccurs="1" maxOccurs="unbounded">
      <xs:element name="version" type="version" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="version">
    <xs:sequence minOccurs="0" maxOccurs="unbounded">
      <xs:element name="changeset" type="changeSet" />
    </xs:sequence>
    <xs:attribute name="name" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1" />
          <xs:maxLength value="20" />
          <xs:whiteSpace value="collapse" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="version" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="3" />
          <xs:maxLength value="6" />
          <xs:whiteSpace value="collapse" />
          <xs:pattern value="[.0-9]+" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="changeSet">
    <xs:all minOccurs="1" maxOccurs="1">
      <xs:element name="description" type="xs:string" />
    </xs:all>
    <xs:attribute name="number" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:integer">
          <xs:fractionDigits value="0" />
          <xs:minInclusive value="1" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="type" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="D" />
          <xs:enumeration value="F" />
          <xs:enumeration value="P" />
          <xs:enumeration value="S" />
          <xs:enumeration value="V" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="part" use="optional">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:pattern value="[A-Z]" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="database" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:schema>